import { createApp } from 'vue'
import { createPinia } from 'pinia'

import {
  Button, Toast,
  Navbar, Icon, Tabs, TabPane,
  SearchBar,
  Grid, GridItem,
  Swiper, SwiperItem,
  Tag,
  Cell, CellGroup,
  Divider,
  Switch,
  Card,
  Empty,
  BackTop,
  InfiniteLoading,
  ActionSheet, Popup,
  Menu, MenuItem, OverLay,
  List,
} from '@nutui/nutui-taro';


import './app.scss'
import 'uno.css'

const App = createApp({
  onShow() { },
  // 入口组件不需要实现 render 方法，即使实现了也会被 taro 所覆盖
})
App.use(createPinia())

App
  .use(ActionSheet)
  .use(List)
  .use(Menu)
  .use(MenuItem)
  .use(OverLay)
  .use(Popup)
  .use(Empty)
  .use(InfiniteLoading)
  .use(BackTop)
  .use(Divider)
  .use(Card)
  .use(Switch)
  .use(Button)
  .use(Toast)
  .use(Navbar)
  .use(Icon)
  .use(Tabs)
  .use(TabPane)
  .use(SearchBar)
  .use(Grid)
  .use(GridItem)
  .use(Swiper)
  .use(SwiperItem)
  .use(Tag)
  .use(Cell)
  .use(CellGroup)

export default App
